package com.my.study.anno.driven.property;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

/**
 * @author Carlos
 * @version 1.0
 * @Description
 *
 * {@code @PropertySource}读取外部配置文件中 K/V保存到运行的环境变量中
 *
 * @date 2021/11/24 7:34
 **/
@PropertySource(value = {"classpath:application.properties"})
@Configuration
public class PropertyConfig {

    @Bean
    public PersonProperty personProperty() {
        return new PersonProperty();
    }


}
